package jmu.edu.yjc.controller;

import jmu.edu.yjc.domain.ResponseResult;
import jmu.edu.yjc.service.answer.AnswerService;
import jmu.edu.yjc.service.neo4j.Neo4jService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RequestMapping("/neo4j")
@RestController
public class Neo4jController {
    @Resource
    private Neo4jService neo4jService;
    @Resource
    private AnswerService answerService;
    @GetMapping("/create")
    public ResponseResult createNode() {
        return neo4jService.CreateNode();
    }
    @GetMapping("/export")
    public ResponseResult exportFile(){
        return neo4jService.exportRelationFile();
    }
}